#!/bin/bash

# 检查IPv4虚假ICMP响应是否已忽略
if [[ $(sysctl -n net.ipv4.icmp_ignore_bogus_error_responses 2>/dev/null) -eq 1 ]]; then
    echo "通过：IPv4虚假ICMP响应已忽略"
else
    echo "失败：IPv4虚假ICMP响应未忽略"
    exit 1
fi